package com.dailywork.basepro.model;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Son extends Father {

    private String sex;

    public Son(String name, String age, String sex) {
        super(name, age);
        this.sex = sex;
    }

    @Override
    public void getmyDec() {
        System.out.println("I am is son!");
    }

    public void study() {
        System.out.println("I am studing!");
    }
}
